<template>
	<view class="content" @touchmove.stop.prevent>
		<view class="top-bg">

		</view>
		<view class="top">
			<view class="logo-box">
				<view style="height: var(--status-bar-height); width: 100%;"></view>
				<u-navbar :isBack='false' title="诚意金订单" :titleStyle="{fontSize:'18',fontWeight: 'bold',color:'#fff'}"
					bgColor="transparent" :autoBack="false">
				</u-navbar>
				<!-- 顶部下拉 -->
			</view>
		</view>
		<view class="nr-box">
			<view class="nr-tab">
				<view class="nr-item">
					<view class="nr-title">
						<view>
							<span class="line-item"></span>诚意金订单
						</view>
						<view @click.stop="handlergoBack()">
							<u-icon name="close"></u-icon>
						</view>
					</view>

					<view class="nr-sort">
						<view class="item-sort" @click="staffShow=true">{{staffName}}<u-icon name="arrow-down"></u-icon>
						</view>
					</view>
				</view>
			</view>
			<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltoupper="upper"
				@scrolltolower="lower" @scroll="scroll">

				<view class="nr-item">
					<view class="item" v-for="(item,index) in listData" :key="index">
						<view class="img-box">
							<view class="img">
								<u--image :showLoading="true" :src="item.thumb" width="180rpx"
									height="204rpx"></u--image>
								<view class="img-state" v-if="item.state ===1 && item.cash > 0">
									{{cashStatus[item.state]}}
								</view>
								<view class="img-state" v-else>{{orderStatus[item.state]}}</view>
							</view>
						</view>
						<view class="info-box">
							<view class="info-title">
								{{item.title || ''}}
							</view>
							<view class="info-size">
								意向车型：{{item.cart}}
							</view>
							<view class="info-size">
								订单号：{{item.order_sn}}
							</view>
							<view class="info-size">
								日期：{{item.pay_time}}
							</view>
							<view class="info-size">
								<span>客户：{{item.real_name}}</span> <span class="info-price">{{item.amount}}元</span>
							</view>
							<view class="info-size info-but">
								<view>
									销售顾问：{{item.staff_real_name || ''}}
								</view>
								<view v-if="identity === 2">
									<span class="but-tx" @click="getCashBefore(item.id, 0)">提现</span><span
										class="but-tk" @click="getCashBefore(item.id, 1)">退款</span>
								</view>
							</view>

						</view>
					</view>

					<!-- 为空 -->
					<view class=""
						style="width: 100%;height: 600rpx;display: flex;justify-content: center;align-items: center;"
						v-if="listData.length == 0">
						<u-empty mode="list">

						</u-empty>
					</view>
				</view>
			</scroll-view>
		</view>
		<!-- 添加拨打电话用户状态	 -->
		<u-popup :show="phoneShow" round="8" :closeOnClickOverlay="false" :safeAreaInsetTop='false' :closeable="true"
			mode="center" @close="close" @open="open">
			<view class="client-box">
				<view class="client-title">
					客户跟进
				</view>
				<view class="client-cell">
					<u-cell :border='false' title="客户状态" :isLink="true" @click="userShow = true">
						<text slot="value" style="color: #3477FC;">{{summaryKey[form.summary]}}</text>
					</u-cell>
				</view>
				<view class="client-cell">
					<u-cell :border='false' title="是否同意加微信" :isLink="true" @click="wxShow = true">
						<text slot="value" style="color: #3477FC;">{{wxkey[form.wechat]}}</text>
					</u-cell>
				</view>

				<view class="client-nr">
					<view class="nr-title">跟进记录</view>
					<view class="nr-text">
						<u-textarea height="90" v-model="form.content" placeholder="请输入内容"></u-textarea>
					</view>
				</view>

				<view class="client-but">
					<u-button type="primary" text="提交" @click='formOK'></u-button>
				</view>

			</view>
			<u-toast ref="uToast"></u-toast>
			<!-- 客户状态		 -->
			<u-picker :show="userShow" @confirm="usertypeSelectOk" closeOnClickOverlay keyName="label"
				@close="UsercloseType" :columns="typeColumns2" @cancel="usertypeSelectNot"></u-picker>
			<!-- 是否加微信 -->
			<u-picker :show="wxShow" @confirm="wxtypeSelectOk" closeOnClickOverlay keyName="label" @close="wxclose"
				:columns="wxColumns" @cancel="wxtypeSelectNot"></u-picker>
		</u-popup>

		<!-- 车型弹出层 -->
		<u-picker :show="cartShow" @confirm="cartSelectOk" closeOnClickOverlay keyName="label" @close="cartclose"
			:columns="cartList" @cancel="cartSelectNot"></u-picker>
		<!-- 销售顾问弹出层 -->
		<u-picker :show="staffShow" @confirm="staffSelectOk" closeOnClickOverlay keyName="label" @close="staffclose"
			:columns="staffList" @cancel="staffSelectNot"></u-picker>
		<u-modal :show="model.show" showCancelButton :title="model.title" :content='model.content' @confirm="emconfirm"
			@cancel="emcancel">
			<u-toast ref="uToast2"></u-toast>
		</u-modal>
	</view>
</template>

<script>
	import {
		getWorkListApi,
		getWorksaveApi,
		getWorkcallApi,
		getLabel
	} from '@/api/system/index'
	import {
		getOrderList,
		getOrderCash
	} from '@/api/system/order'
	import {
		nextTick
	} from "vue"
	import {
		mapMutations,
		mapGetters
	} from "vuex";
	export default {
		data() {
			return {
				scrollTop: 0,
				old: {
					scrollTop: 0
				},
				navbar: 0, //状态栏高度
				statusBar: 0, // 状态栏高度 + 导航栏高度  
				customBar: 0, // 自定义标题与胶囊对齐高度

				butShow: null,
				phoneShow: false,
				listshow: true,
				infoStatus: null,
				form: {
					content: '',
					wechat: 0,
					summary: '',
					activeId: null,
					userId: null

				},
				queryParam: {
					page: 1,
					limit: 10,
					type: 0,
					keyword: null,
					activeId: null,
					summary: "all",
					staffId: null,
					cartId: null
				},
				total: 0,
				typeShow: false,
				loadingIs: true,
				typeColumns: [
					[{
							label: '全部',
							key: 'all'
						},
						{
							label: '待跟客户',
							key: 'wait'
						},
						{
							label: '报名',
							key: 'notSincerity'
						},
						{
							label: '诚意金',
							key: 'okSincerity'
						},
						{
							label: '订单',
							key: 'orderNum'
						},
						{
							label: '重点',
							key: 'important'
						},
						{
							label: '有效',
							key: 'notBuy'
						},
						{
							label: '未接',
							key: 'notAnswer'
						},
						{
							label: '无效',
							key: 'invalid'
						}
					]
				],
				summaryKey: {
					all: "全部客户",
					wait: "待跟客户",
					notSincerity: "报名",
					okSincerity: "诚意金",
					orderNum: "订单",
					important: "重点",
					notBuy: "有效",
					notAnswer: "未接",
					invalid: "无效",
				},
				orderStatus: {
					"-2": "退款审核拒绝",
					"-1": "退款中",
					"0": "未支付",
					"1": "已支付",
					"2": "已退款"
				},
				cashStatus: {
					"1": "提现中",
					"2": "已提现"
				},
				model: {
					show: false,
					title: '',
					content: '999898979',
					is_men: true,
					id: null,
					type: null
				},
				userShow: false,
				wxShow: false,
				typeName: '',
				wxkey: {
					0: "否",
					1: "是"
				},
				wxColumns: [
					[{
							label: '是',
							key: 1
						}, {
							label: '否',
							key: 0
						}

					]
				],
				statusIcon: {
					wait: "../../static/images/v2/icon/status_daigen.png",
					notSincerity: "../../static/images/v2/icon/status_baoming.png",
					okSincerity: "../../static/images/v2/icon/status_chengyijin.png",
					orderNum: "../../static/images/v2/icon/status_dingdan.png",
					important: "../../static/images/v2/icon/status_zhongdian.png",
					notBuy: "../../static/images/v2/icon/status_youxiao.png",
					notAnswer: "../../static/images/v2/icon/status_wuxiao.png",
					invalid: "../../static/images/v2/icon/status_wuxiao.png"
				},
				listData: [],
				staffList: [],
				staffName: "销售顾问",
				cartList: [],
				cartName: "全部车型",
				staffShow: false,
				cartShow: false,

			}
		},
		computed: {
			...mapGetters(["identity"])
		},
		mounted() {


		},
		onHide() {
			this.queryParam = {
				page: 1,
				limit: 10,
				type: 0,
				keyword: null,
				activeId: null,
				summary: "all",
			}


		},
		onLoad(options) {
			console.log(">>>>", options)
			if (options.type) {
				this.queryParam.summary = options.type
			}

		},
		onShow() {
			var stort_ac_id = uni.getStorageSync('active_id')
			var stort_ac_title = uni.getStorageSync('active_title')
			var stort_ac_key = uni.getStorageSync('summary');
			this.queryParam.activeId = stort_ac_id
			this.queryParam.summary = stort_ac_key
			this.typeName = stort_ac_title

			this.listData = []
			this.listshow = true
			this.getWorkListData()
			this.getLabelList()
		},

		created() {

			this.loadingIs = true
		},
		methods: {
			async getLabelList() {
				var params = {
					activeId: this.queryParam.activeId
				}
				await getLabel(params).then(res => {
					if (!res.code) {
						var staffList = res.data.staffList
						var cartList = res.data.cartList
						if (staffList) {
							var arr = Object.entries(staffList).map(([key, value]) => {
								return {
									id: key,
									label: value
								};
							});
							var allObj = {
								id: null,
								label: "全部"
							}
							arr.unshift(allObj)
							this.staffList = [arr];
						}
						if (cartList) {
							var arr = Object.entries(cartList).map(([key, value]) => {
								return {
									id: key,
									label: value
								};
							});
							var allObj = {
								id: null,
								label: "全部"
							}
							arr.unshift(allObj)
							this.cartList = [arr];
						}
					}

				});
			},
			clickButShow(index) {
				if (this.butShow == index) {

					this.butShow = null

				} else {
					this.butShow = index
				}
			},
			handlergoBack() {
				//如果没有上一个页面 就回到首页
				const pages = getCurrentPages();
				if (pages.length === 2) {
					uni.navigateBack({
						delta: 1
					});
				} else if (pages.length === 1) {
					uni.switchTab({
						url: '/pages/index/index',
					})
				} else {
					uni.navigateBack({
						delta: 1
					});
				}
			},
			async getWorkListData() {
				getOrderList(this.queryParam).then(res => {
					if (!res.code) {
						this.listData = [...this.listData, ...res.data]
						this.total = res.count
					}
					this.listshow = false
				})
			},

			open() {
				// console.log('open');
			},
			close() {


				this.phoneShow = false
			},
			getUserInfo(id) {

				this.$tab.navigateTo(`/pages/work/detail?id=${id}`)
			},
			upper: function(e) {

				// console.log(e)
			},
			async lower() {
				//判断当前数据数量是否
				if (this.listData.length >= this.total) return false

				this.queryParam.page++
				await this.getWorkListData()
			},
			scroll: function(e) {
				// console.log(e)
				this.old.scrollTop = e.detail.scrollTop
			},
			goTop: function(e) {
				// 解决view层不同步的问题
				this.scrollTop = this.old.scrollTop
				this.$nextTick(function() {
					this.scrollTop = 0
				});
				uni.showToast({
					icon: "none",
					title: "纵向滚动 scrollTop 值已被修改为 0"
				})
			},
			//提现或退款
			getCashBefore(id, type) {
				this.model = {
					show: true,
					title: type == 1 ? "确定要退款？" : "确定要提现？",
					content: '',
					is_men: false,
					id: id,
					type: type
				}
			},
			emcancel() {
				this.model = {
					show: false,
					title: '',
					content: '',
					is_men: true,
					id: null,
					type: null
				}

			},
			//确认提现
			emconfirm() {
				var _this = this
				var param = {
					type: _this.model.type,
					orderId: _this.model.id
				}
				getOrderCash(param).then(res => {
					if (res.code === 0) {
						_this.$refs.uToast2.show({
							type: 'success',
							message: '提交成功',
							complete() {
								_this.emcancel()
								_this.listData = []
								_this.getWorkListData()
							}

						})
					}

				})

			},
			clearKeyword() {

				this.queryParam.keyword = ''
			},
			callphone(item) {



				var that = this
				var arr = {
					activeId: item.active_id,
					userId: item.id,
					mobile: item.mobile,
					realName: item.real_name
				}
				that.form.wechat = item.wechat
				that.form.summary = item.summary
				that.form.userId = item.id
				that.form.activeId = item.active_id
				getWorkcallApi(arr).then(res => {

					if (!res.code) {

						uni.makePhoneCall({
							phoneNumber: item.mobile, //仅为示例
							success(res) {
								//用户拒绝权限后任然会走这个函数，

							},
							fail(err) {


							},
							complete() {

								that.phoneShow = true

							}
						});
					}

				})

			},
			callphone2(item) {

				var that = this

				var arr = {
					activeId: item.active_id,
					userId: item.id,
					mobile: item.mobile,
					realName: item.real_name
				}
				that.form.wechat = item.wechat
				that.form.summary = item.summary
				that.form.userId = item.id
				that.form.activeId = item.active_id
				getWorkcallApi(arr).then(res => {

					if (!res.code) {
						uni.makePhoneCall({
							phoneNumber: item.mobile, //仅为示例
							success(res) {
								//用户拒绝权限后任然会走这个函数，

							},
							fail(err) {


							},
							complete() {


							}
						});
					}


				})
			},
			async changeKwyword() {
				this.listData = []
				await this.getWorkListData()
			},
			async doSearch() {
				this.listData = []
				await this.getWorkListData()

			},
			getSelectType() {
				this.show = true
			},
			change(e) {

			},
			async cartSelectOk(e) {
				var data = e.value[0]

				this.queryParam.cartId = data.id
				this.queryParam.page = 1
				this.cartName = data.label
				this.listData = []

				this.cartShow = false

				await this.getWorkListData()
			},
			cartclose() {
				this.cartShow = false


			},
			cartSelectNot() {
				this.cartShow = false
			},
			async staffSelectOk(e) {
				var data = e.value[0]
				this.queryParam.staffId = data.id
				this.staffName = data.label
				this.queryParam.page = 1
				this.listData = []
				this.staffShow = false
				await this.getWorkListData()
			},
			staffclose() {
				this.staffShow = false
			},
			staffSelectNot() {
				this.staffShow = false
			},
			UsercloseType() {


			},
			usertypeSelectOk(e) {
				var data = e.value[0]

				this.form.summary = data.key

				this.userShow = false

			},
			wxtypeSelectOk(e) {
				var data = e.value[0]

				this.form.wechat = data.key

				this.wxShow = false

			},

			usertypeSelectNot() {

				this.userShow = false
			},
			wxtypeSelectNot() {

				this.wxShow = false
			},
			async closeType() {

				await this.getWorkListData()

			},
			async formOK() {

				//判断当前
				if (this.form.summary == null || this.form.summary == '') {

					this.$refs.uToast.show({
						type: 'warning',
						message: "请选择客户状态"

					})
					return false

				}
				if (('0' != (this.form.wechat).toString()) && (this.form.wechat == null || this.form.wechat == '')) {

					this.$refs.uToast.show({
						type: 'warning',
						message: "请选择微信添加状态"

					})
					return false

				}
				if (this.form.content == null || this.form.content == '') {

					this.$refs.uToast.show({
						type: 'warning',
						message: "请填写跟进记录"

					})
					return false
				}
				var that = this

				await getWorksaveApi(that.form).then(res => {

					if (!res.code) {

						that.$refs.uToast.show({
							type: 'success',
							message: '添加成功',
							complete() {
								that.phoneShow = false
								that.form = {
									content: '',
									wechat: 0,
									summary: '',
									activeId: null,
									userId: null
								}
								that.listData = []
								that.getWorkListData()
							}

						})


					}


				})




			}

		},


	}
</script>

<style lang="scss">
	page {
		background-color: #F7F7F7FF !important;
	}

	.scroll-Y {
		height: calc(100vh - 450rpx);
	}

	.scroll-view_H {
		white-space: nowrap;
		width: 100%;

	}


	.content {
		.top-bg {
			position: absolute;
			width: 100%;
			height: 200rpx;
			background-image: url('');
			background-size: cover;
			/* 背景图片覆盖整个元素 */
			background-position: center;
			/* 背景图片居中 */
			// background: linear-gradient(0deg, #FFFFFF 0%, #3477FC 100%);
			z-index: -100;
		}

		.top {
			position: relative;
			display: flex;
			flex-direction: column;
			z-index: 1000;

			.logo-box {

				width: 100%;
				height: 180rpx;
				// position: absolute;
				font-weight: bold;
				z-index: -100;


			}
		}

	}

	.index-box {
		position: absolute;
		bottom: 10%;
		width: 100%;
		padding: 0px 10px;

		.index-input {

			width: 100%;
			background-color: #ffffff57;
			padding: 10rpx 10rpx;
			border-radius: 30rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.search {
				width: 30%;
				border-left: 1px solid #fff;
				text-align: center;
				color: #fff;
				font-weight: bold;
			}
		}

		// color: #fff;
		.index-cell {
			border: 1px solid #fff;
		}

		.index-right {
			display: flex;
			justify-content: flex-end;
			color: #fff;
		}
	}

	.nr-box {

		width: 100%;
		margin: 0 auto;
		height: 100%;

		.status-box {
			width: 100%;
			background-color: #fff;
			margin: 0 auto;

			.title {
				padding: 30rpx 40rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: bold;
				font-size: 28rpx;
				color: rgba(0, 0, 0, 0.85);
				text-align: left;
				font-style: normal;
				text-transform: none;
			}

			.item-box {
				display: flex;
				justify-content: space-between;
				justify-items: center;
				align-items: center;
				flex-wrap: wrap;

				.item {
					width: 25%;
					text-align: center;
					margin-bottom: 30rpx;

					.img-box {
						position: relative;

						.item-img {
							width: 60rpx;
							height: 60rpx;
						}

						.num {
							position: absolute;
							top: 0;
							font-family: PingFang SC, PingFang SC;
							font-weight: bold;
							font-size: 16rpx;
							color: #72AEFD;
							line-height: 36rpx;
							text-align: left;
							font-style: normal;
							text-transform: none;
						}
					}

					.item-name {
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: rgba(78, 89, 105, 0.85);
						line-height: 40rpx;
						font-style: normal;
						text-transform: none;
					}
				}
			}
		}

		.nr-tab {
			margin-top: 40rpx;
			width: 100%;
			background-color: #EBF3FF75;
			display: flex;
			justify-content: space-between;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			padding: 20rpx 0rpx;

			.nr-item {
				width: 100%;
				padding: 30rpx 40rpx;
				background: #FFFFFF;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin-bottom: 1px;

				.line-item {
					width: 6rpx;
					padding: 1rpx 5rpx;
					background: #254EF8;
					border-radius: 436rpx 436rpx 436rpx 436rpx;
					margin-right: 15rpx;
				}

				.nr-title {
					display: flex;
					justify-content: space-between;

					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: rgba(0, 0, 0, 0.85);
					line-height: 48rpx;
					text-align: left;
					font-style: normal;
					text-transform: none;

				}

				.mb-10 {
					margin-bottom: 20rpx;
				}

				.nr-sort {
					width: 100%;
					display: flex;
					justify-content: flex-start;
					// padding: 20rpx 25rpx;

					.item-sort {
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						font-size: 26rpx;
						color: rgba(45, 52, 64, 0.85);

						text-align: left;
						font-style: normal;
						text-transform: none;
						margin-right: 40rpx;
						padding-top: 40rpx;
						display: flex;
					}
				}

				.nr-div {
					width: 100%;
					display: flex;
					justify-content: space-between;
					// flex-wrap: wrap;
					// align-items: center;
					// ajju
					margin-bottom: 5px;
					padding: 25rpx;

					.item {
						text-align: center;

						.nr-num {
							font-family: PingFang SC, PingFang SC;
							font-weight: bold;
							font-size: 36rpx;
							color: #2553F7;
							line-height: 36rpx;
							text-align: left;
							font-style: normal;
							text-transform: none;
							padding-bottom: 20rpx;
						}

						.nr-item-tile {
							font-family: PingFang SC, PingFang SC;
							font-weight: 500;
							font-size: 26rpx;
							color: rgba(78, 89, 105, 0.85);
							line-height: 36rpx;
							text-align: left;
							font-style: normal;
							text-transform: none;
						}
					}


				}

			}

			.tab-title {
				font-family: PingFang SC, PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: rgba(0, 0, 0, 0.85);
				line-height: 36rpx;
				text-align: left;
				font-style: normal;
				text-transform: none;
				padding: 0rpx 40rpx;
			}

			.select-tab-box {
				display: flex;
				justify-content: space-between;

				.item {
					display: flex;
					margin-right: 40rpx;

				}
			}
		}

		.nr-item {
			width: 100%;
			border-radius: 5px;
			box-shadow: 0 0 1px #ccc;
			// padding: 20rpx 40rpx 20rpx 20rpx;
			margin-bottom: 20rpx;

			// margin-top: 40rpx;
			.item {
				width: 100%;
				display: flex;
				justify-content: flex-start;
				background-color: #FFFFFFFF;
				border-radius: 0rpx 0rpx 0rpx 0rpx;
				border: 2rpx solid #E5F1FF;

				.img-box {

					display: flex;
					justify-content: space-between;
					padding: 20rpx;
					justify-items: center;
					align-items: center;
					margin-right: 20rpx;

					.img {
						padding: 0rpx 10rpx;
						position: relative;
						width: 174rpx;
						height: 204rpx;

						.item-img {
							width: 174rpx;
							height: 204rpx;
						}

						.img-state {
							position: absolute;
							top: 0;
							background: #254EF8;
							border-radius: 10rpx 10rpx 10rpx 10rpx;
							padding: 10rpx;
							font-size: 16rpx;
							color: #fff;
						}
					}

				}

				.info-box {
					width: 100%;
					padding: 20rpx;

					.info-title {
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						font-size: 26rpx;
						color: rgba(0, 0, 0, 0.85);
						line-height: 48rpx;
						text-align: left;
						font-style: normal;
						text-transform: none;
					}

					.info-size {
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						font-size: 20rpx;
						color: rgba(0, 0, 0, 0.85);
						line-height: 40rpx;
						text-align: left;
						font-style: normal;
						text-transform: none;

						.info-price {
							font-family: PingFang SC, PingFang SC;
							font-weight: 500;
							font-size: 26rpx;
							color: rgba(230, 14, 14, 0.85);
							line-height: 48rpx;
							text-align: left;
							font-style: normal;
							text-transform: none;
							margin-left: 40rpx;
						}
					}

					.info-but {
						margin-top: 20rpx;
						display: flex;
						justify-content: space-between;

						.but-tx {
							padding: 10rpx 40rpx;
							background: #254EF8;
							color: #fff;
							margin-right: 20rpx;
						}

						.but-tk {
							padding: 10rpx 30rpx;
							background: #FF911C;
							color: #fff;
							margin-right: 20rpx;
						}
					}

				}

				.title-box {
					.name {
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						font-size: 20rpx;
						color: rgba(0, 0, 0, 0.85);
						line-height: 48rpx;
						text-align: left;
						font-style: normal;
						text-transform: none;
					}

					.name-sf {
						font-family: PingFang SC, PingFang SC;
						font-weight: 500;
						font-size: 16rpx;
						color: #254EF8;
						line-height: 48rpx;
						text-align: left;
						font-style: normal;
						text-transform: none;
					}
				}


			}

		}
	}

	.nr-but {
		padding: 20rpx 0rpx;
		display: flex;
		justify-content: space-between;
		width: 100%;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}

	.client-box {

		width: 650rpx;
		padding-bottom: 40rpx;
		margin-top: 50rpx;

		.client-title {
			color: #333333;
			font-size: 36rpx;
			font-weight: bold;
			padding: 0rpx 40rpx;
			padding-bottom: 20rpx;
		}

		.client-cell {
			width: 95%;
			margin: 0 auto;
			background-color: #fff;
			box-shadow: 0 0 10px #ccc;
			padding: 5rpx 0rpx;
			border-radius: 5px;
			margin-bottom: 10px;
		}

		.client-nr {
			width: 95%;
			margin: 0 auto;
			background-color: #fff;
			border-radius: 5px;

			.nr-title {
				padding: 20rpx;
				border-bottom: 1px solid #ccc;
			}

			.nr-text {
				padding: 10rpx 0rpx;
			}
		}

		.client-but {
			width: 95%;
			margin: 0 auto;
			padding-top: 90rpx;
		}
	}

	.truncate {
		max-width: 170rpx;
		/* 指定最大宽度 */
		white-space: nowrap;
		/* 确保文本不换行 */
		overflow: hidden;
		/* 隐藏溢出的内容 */
		text-overflow: ellipsis;
		/* 使用省略号表示文本被截断 */
	}
</style>